﻿/***************************************************************************
*		功能：     用户信息实体类(代码生成工具搞定的)
*		作者：     Hydra
*		日期：     2011-08-11 05:47
*		
*		修改日期：
*		修改人：
*		修改内容：
/* *************************************************************************/
using System;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.IO;
using System.Text;
using System.Data;
using Deeper.DataAccess;
using Deeper.Common;
using Deeper.Common.Web;
using System.Collections.Generic;
namespace ZhongTian.Model
{
	/// <summary>
	/// 用户信息
	/// </summary>
	[Serializable]
	[HTable(TableName = "T_User", EntityName = "User")]
	public partial class User :  IModel
	{
        /// <summary>
        /// 是否新参数
        /// </summary>
        public bool IsNewModel() { return UserId == 0; }

	    #region 所有的字段
	 
	    
		/// <summary>
		/// userId
		/// </summary>
		[HColumn("UserId", Remake = "userId", DataType = "numeric" , IsPrimary = true , IsIdentity = true , IsUniqueness = true)]
		public int UserId { set; get; }
        

		/// <summary>
		/// 所属分部
		/// </summary>
		[HColumn("BranchId", Remake = "所属分部", DataType = "numeric")]
		public int BranchId { set; get; }
        

		/// <summary>
		/// 用户编码
		/// </summary>
		[HColumn("UserCode", Remake = "用户编码", DataType = "varchar" , Length =20 , IsUniqueness = true)]
		public string UserCode { set; get; }
        

		/// <summary>
		/// 用户名称
		/// </summary>
		[HColumn("UserName", Remake = "用户名称", DataType = "varchar" , Length =100)]
		public string UserName { set; get; }
        

		/// <summary>
		/// 用户密码
		/// </summary>
		[HColumn("Pwd", Remake = "用户密码", DataType = "varchar" , Length =20)]
		public string Pwd { set; get; }
        

		/// <summary>
		/// 用户组
		/// </summary>
		[HColumn("Roles", Remake = "用户组", DataType = "text" , IsNullable = true)]
		public string Roles { set; get; }
        



        public class F
        {
    		 
			 /// <summary>
			 /// userId
			 /// </summary>
			 public static Field UserId = new Field("T_User","UserId");
	    	 

			 /// <summary>
			 /// 所属分部
			 /// </summary>
			 public static Field BranchId = new Field("T_User","BranchId");
	    	 

			 /// <summary>
			 /// 用户编码
			 /// </summary>
			 public static Field UserCode = new Field("T_User","UserCode");
	    	 

			 /// <summary>
			 /// 用户名称
			 /// </summary>
			 public static Field UserName = new Field("T_User","UserName");
	    	 

			 /// <summary>
			 /// 用户密码
			 /// </summary>
			 public static Field Pwd = new Field("T_User","Pwd");
	    	 

			 /// <summary>
			 /// 用户组
			 /// </summary>
			 public static Field Roles = new Field("T_User","Roles");
	    	 

        }
        #endregion
		  
	 
	}
    
}